// 将时间转换成胡芦串类型
function handleDate(time) {
    // IOS时间格式转换兼容
    let date = new Date(time.replace(/-/g, '/'));

    let year = date.getFullYear();
    let month = date.getMonth();
    let day = date.getDate();
    
    month = month + 1 >= 10? month + 1 : '0' + (month + 1);
    day = day >= 10? day : '0' + day;

    return year + '-' + month + '-' + day;
}
